package edu.hawaii.myisern.sanitycheck;
/**
 * True or False object with a String message.
 * @author John Hauge
 *
 */
public class SanityCheckErrorMessage {
	private String message;
	private String errorMsg;
	private boolean bool;
	/**
	 * Constructor.
	 * @param message Message.
	 * @param bool True/False.
	 */
	public SanityCheckErrorMessage(String message, boolean bool) {
		this.message = message;
		this.bool = bool;
		this.errorMsg = "";
	}
	/**
	 * Access to message.
	 * @return A message.
	 */
	public String getMessage() {
		return this.message;
	}
	/**
	 * Access to boolean.
	 * @return True/False.
	 */
	public boolean isValid() {
		return this.bool;
	}
	/**
	 * Access to enhances message, primarily for errors.
	 * @return An error message.
	 */
	public String getErrorMessage() {
		return this.errorMsg;
	}
	/**
	 * Access to enchances message, primarily for errors.
	 * @param s Message.
	 */
	public void setErrorMessage(String s) {
		this.errorMsg = s;
	}
	
}
